﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using seo.util;
using seo.Data;

namespace UrlFrecth
{
    public partial class UrlFetch : Form
    {
        public UrlFetch()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            YiLookCollector collector = new YiLookCollector();

           List<YiLookCatalog> list = collector.CollectCatalogs();

           foreach (YiLookCatalog catalog in list) { 

               // collector.CollectArtsFromCatalog(catalog);
           }

           List<YiLookArt> artlist = collector.GetAllArts();

           foreach (YiLookArt art in artlist) {

               collector.collectChapters(art);
           }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            YiLookCollector collector = new YiLookCollector();
            collector.CollectAllContent();
            //collector.GetContentTest();
        }
    }
}
